runOnStartup(async runtime => {
    runtime.addEventListener("tick", () => tick())
    runtime.getLayout("MainLevel").addEventListener("afterlayoutstart", () => init())
});
function tick() {
    if (runtime.layout.name != "MainLevel") return;
    uiScoreTextShow.showSocre()
}
function init() {
}
globalThis.uiScoreTextShow = {
    showSocre: function () {
        /**@type {ITextInstance} */
        let UIScore = runtime.objects.UIScoreText.getFirstInstance()
        UIScore.text = "Score: " + playerSelfdata.Score
    }
}
export default uiScoreTextShow